//
//  AGRequestNetwork.h
//  AGPastime
//
//  Created by Ager on 15/11/25.
//  Copyright © 2015年 Ager. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AGRequestNetwork : NSObject

/**
 *  get 方法请求 xml
 */
+ (void)requestXML_GET:(NSString*)strUrl success:(void(^)(id XMLParser))success fail:(void(^)(id error))fail;

/**
 *  post 方法请求 xml
 */
+ (void)requestXML_POST:(NSString*)strUrl parameters:(NSString*)parameters success:(void(^)(id XMLParser))success fail:(void(^)(id error))fail;

/**
 *  get 方法请求 JSON
 */
+ (void)requestJSON_GET:(NSString*)strUrl success:(void(^)(id json))success fail:(void(^)(id error))fail;



/**
 *  post 方法请求 JSON
 */
+ (void)requestJSON_POST:(NSString*)strUrl parameters:(NSDictionary*)parameters success:(void(^)(id json))success fail:(void(^)(id error))fail;

/**
 *  get 方法请求 img
 */
+ (void)requestIMG_GET:(NSString*)strUrl success:(void(^)(id image))success fail:(void(^)(id error))fail;




@end
